﻿using System;
using System.Collections.Generic;

namespace RookieGrow.Domain.Model.SportsStore.Extension
{
    public static class ProductExtension
    {
        public static void PrintProducts(this IEnumerable<Product> productEnum)
        {
            Console.WriteLine("Products:");
            Console.WriteLine("-----------------------------------------------");
            foreach (Product prod in productEnum)
            {
                Console.WriteLine("Product ID: {0}", prod.ProductID);
                Console.WriteLine("Name: {0}", prod.Name);
                Console.WriteLine("Description: {0}", prod.Description);
                Console.WriteLine("Price: {0}", prod.Price);
                Console.WriteLine("Category: {0}", prod.Category);

                Console.WriteLine("-----------------------------------------------");
            }
        }
    }
}
